home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / CutPaste.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  6.2 KB  |  190 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.2
  7. */ 
  8. /*   $RCSfile: CutPaste.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:35:44 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmCutPaste_h
  14. #define _XmCutPaste_h
  15.  
  16. #include <Xm/Xm.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /* XmClipboard return status definitions */
  23.  
  24. #define XmClipboardFail         0
  25. #define XmClipboardSuccess      1
  26. #define XmClipboardTruncate     2
  27. #define XmClipboardLocked       4
  28. #define XmClipboardBadFormat    5
  29. #define XmClipboardNoData       6
  30.  
  31. /* XmClipboard pre-1.2 definitions */
  32.  
  33. #define ClipboardFail         0
  34. #define ClipboardSuccess      1 
  35. #define ClipboardTruncate     2
  36. #define ClipboardLocked       4
  37. #define ClipboardBadFormat       5
  38. #define ClipboardNoData       6
  39.  
  40. typedef struct {
  41.     long DataId;
  42.     long PrivateId;
  43. } XmClipboardPendingRec, *XmClipboardPendingList;
  44.  
  45. #ifdef _NO_PROTO
  46. typedef void (*XmCutPasteProc)() ;
  47. typedef void (*VoidProc)() ;
  48. #else
  49. typedef void (*XmCutPasteProc)( Widget w, long * data_id, long * private_id,
  50.                                     int * reason) ;
  51. typedef void (*VoidProc)( Widget w, int * data_id, int * private_id,
  52.                                     int * reason) ;
  53. #endif
  54.  
  55.  
  56. /********    Public Function Declarations    ********/
  57. #ifdef _NO_PROTO
  58.  
  59. extern int XmClipboardBeginCopy() ;
  60. extern int XmClipboardStartCopy() ;
  61. extern int XmClipboardCopy() ;
  62. extern int XmClipboardEndCopy() ;
  63. extern int XmClipboardCancelCopy() ;
  64. extern int XmClipboardWithdrawFormat() ;
  65. extern int XmClipboardCopyByName() ;
  66. extern int XmClipboardUndoCopy() ;
  67. extern int XmClipboardLock() ;
  68. extern int XmClipboardUnlock() ;
  69. extern int XmClipboardStartRetrieve() ;
  70. extern int XmClipboardEndRetrieve() ;
  71. extern int XmClipboardRetrieve() ;
  72. extern int XmClipboardInquireCount() ;
  73. extern int XmClipboardInquireFormat() ;
  74. extern int XmClipboardInquireLength() ;
  75. extern int XmClipboardInquirePendingItems() ;
  76. extern int XmClipboardRegisterFormat() ;
  77.  
  78. #else
  79.  
  80. extern int XmClipboardBeginCopy( 
  81.                         Display *display,
  82.                         Window window,
  83.                         XmString label,
  84.                         Widget widget,
  85.                         VoidProc callback,
  86.                         long *itemid) ;
  87. extern int XmClipboardStartCopy( 
  88.                         Display *display,
  89.                         Window window,
  90.                         XmString label,
  91.                         Time timestamp,
  92.                         Widget widget,
  93.                         XmCutPasteProc callback,
  94.                         long *itemid) ;
  95. extern int XmClipboardCopy( 
  96.                         Display *display,
  97.                         Window window,
  98.                         long itemid,
  99.                         char *format,
  100.                         XtPointer buffer,
  101.                         unsigned long length,
  102.                         long private_id,
  103.                         long *dataid) ;
  104. extern int XmClipboardEndCopy( 
  105.                         Display *display,
  106.                         Window window,
  107.                         long itemid) ;
  108. extern int XmClipboardCancelCopy( 
  109.                         Display *display,
  110.                         Window window,
  111.                         long itemid) ;
  112. extern int XmClipboardWithdrawFormat( 
  113.                         Display *display,
  114.                         Window window,
  115.                         long data) ;
  116. extern int XmClipboardCopyByName( 
  117.                         Display *display,
  118.                         Window window,
  119.                         long data,
  120.                         XtPointer buffer,
  121.                         unsigned long length,
  122.                         long private_id) ;
  123. extern int XmClipboardUndoCopy( 
  124.                         Display *display,
  125.                         Window window) ;
  126. extern int XmClipboardLock( 
  127.                         Display *display,
  128.                         Window window) ;
  129. extern int XmClipboardUnlock( 
  130.                         Display *display,
  131.                         Window window,
  132. #if NeedWidePrototypes
  133.                         int all_levels) ;
  134. #else
  135.                         Boolean all_levels) ;
  136. #endif /* NeedWidePrototypes */
  137. extern int XmClipboardStartRetrieve( 
  138.                         Display *display,
  139.                         Window window,
  140.                         Time timestamp) ;
  141. extern int XmClipboardEndRetrieve( 
  142.                         Display *display,
  143.                         Window window) ;
  144. extern int XmClipboardRetrieve( 
  145.                         Display *display,
  146.                         Window window,
  147.                         char *format,
  148.                         XtPointer buffer,
  149.                         unsigned long length,
  150.                         unsigned long *outlength,
  151.                         long *private_id) ;
  152. extern int XmClipboardInquireCount( 
  153.                         Display *display,
  154.                         Window window,
  155.                         int *count,
  156.                         unsigned long *maxlength) ;
  157. extern int XmClipboardInquireFormat( 
  158.                         Display *display,
  159.                         Window window,
  160.                         int n,
  161.                         XtPointer buffer,
  162.                         unsigned long bufferlength,
  163.                         unsigned long *outlength) ;
  164. extern int XmClipboardInquireLength( 
  165.                         Display *display,
  166.                         Window window,
  167.                         char *format,
  168.                         unsigned long *length) ;
  169. extern int XmClipboardInquirePendingItems( 
  170.                         Display *display,
  171.                         Window window,
  172.                         char *format,
  173.                         XmClipboardPendingList *list,
  174.                         unsigned long *count) ;
  175. extern int XmClipboardRegisterFormat( 
  176.                         Display *display,
  177.                         char *format_name,
  178.                         int format_length) ;
  179.  
  180. #endif /* _NO_PROTO */
  181. /********    End Public Function Declarations    ********/
  182.  
  183.  
  184. #if defined(__cplusplus) || defined(c_plusplus)
  185. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  186. #endif
  187.  
  188. #endif /* _XmCutPaste_h */
  189. /* DON'T ADD ANYTHING AFTER THIS #endif */
  190.